package mapper;

import com.yh.javabean.Account;

import java.util.ArrayList;
import java.util.List;

public interface AccountMapper {
    List<Account> getAllAccounts();
//    Account getAccountById(int id);
//    Account getAccountByUsernameAndPassword(String username, String password);
//    int addAccount(Account account);  // return the inserted ID if auto increment is enabled in your db table structure.
//    int updatePasswordById(int id, String newPassword);  // return the number of rows affected. It should be 1 if successful.
//    int deleteAccountById(int id);  // return the number of rows affected. It should be 1 if successful.
    //根据Id查询
    ArrayList<Account> selectID(Account account);
    //根据用户名密码查询
    ArrayList<Account> selectPS(String username,String password);
}
